<?php
$conn=mysql_connect("localhost","root","");
if (!$conn) {
    echo "Could not connect to server<br />";
}else{
    //var_dump($_POST);die;
    $db_phone_manager = mysql_select_db("test", $conn);
    if (!$db_phone_manager) {
        echo "Could not select: phone_manager database<br />";
    }else{
        $querySQL="
           insert into contact (Name,phone)
           values ('$_POST[name]','$_POST[phone_number]')
        ";
        if (!mysql_query($querySQL, $conn)) {
            echo "insert query <b>faile</b> <br />". mysql_error();
        }else{
            echo "insert query <b>success</b> <br />";
        }
    }
    mysql_close($conn);
}

;?>